package com.glela.goods.model.vo.goods;

import com.fasterxml.jackson.annotation.JsonProperty;
import com.glela.goods.model.Goods;

import java.util.List;

public class GoodsPageVo extends Goods {

	private long id;

	private String firstChar;

	private String descriptions;

	private String backgroundImagePath;

	private int likeCount = 0;

//	private int orderNo;

	private int storeShareCount = 0;

	private String brandName;// 品牌名

	private String nameCn;// 品牌中文名

	private String nameEn;// 品牌英文名

	private String logoPath;// 品牌logo

	private String goodNavigateImage;

	private List<BandGoodsVo> goodsVoList;//商品列表

	private int goodCount = 0; //所属品牌馆的商品总数量

	public GoodsPageVo() {
	}

	public GoodsPageVo(Goods goods) {
		super.setId(goods.getId());
		super.setBn(goods.getBn());
		super.setBrandId(goods.getBrandId());
		super.setName(goods.getName());
		super.setLabelName(goods.getLabelName());
		super.setSuggestedPrice(goods.getSuggestedPrice());
		super.setLowestPrice(goods.getLowestPrice());
		super.setUnit(goods.getUnit());
		super.setCategoryParentId(goods.getCategoryParentId());
		super.setCategoryId(goods.getCategoryId());
		super.setOnlineTime(goods.getOnlineTime());
		super.setOfflineTime(goods.getOfflineTime());
		super.setTalentLimit(goods.getTalentLimit());
		super.setThreshold(goods.getThreshold());
		super.setAscription(goods.getAscription());
		super.setTalentDisplay(goods.getTalentDisplay());
		super.setDiscount(goods.getDiscount());
		super.setOperateCosting(goods.getOperateCosting());
		super.setScoreRate(goods.getScoreRate());
		super.setGoodsChannelId(goods.getGoodsChannelId());
		super.setRemark(goods.getRemark());
		super.setCreateTime(goods.getCreateTime());
		super.setSelfSupport(goods.getSelfSupport());
	}

	public int getGoodCount() {
		return goodCount;
	}

	public void setGoodCount(int goodCount) {
		this.goodCount = goodCount;
	}

	@JsonProperty("brandId")
	public long getId() {
		return id;
	}

	public void setId(long id) {
		this.id = id;
	}

	public String getFirstChar() {
		return firstChar;
	}

	public void setFirstChar(String firstChar) {
		this.firstChar = firstChar;
	}

	public String getDescriptions() {
		return descriptions;
	}

	public void setDescriptions(String descriptions) {
		this.descriptions = descriptions;
	}

	public String getBackgroundImagePath() {
		return backgroundImagePath;
	}

	public void setBackgroundImagePath(String backgroundImagePath) {
		this.backgroundImagePath = backgroundImagePath;
	}

	public int getLikeCount() {
		return likeCount;
	}

	public void setLikeCount(int likeCount) {
		this.likeCount = likeCount;
	}

//	public int getOrderNo() {
//		return orderNo;
//	}
//
//	public void setOrderNo(int orderNo) {
//		this.orderNo = orderNo;
//	}

	public int getStoreShareCount() {
		return storeShareCount;
	}

	public void setStoreShareCount(int storeShareCount) {
		this.storeShareCount = storeShareCount;
	}

	public List<BandGoodsVo> getGoodsVoList() {
		return goodsVoList;
	}

	public void setGoodsVoList(List<BandGoodsVo> goodsVoList) {
		this.goodsVoList = goodsVoList;
	}

	public String getBrandName() {
		return brandName;
	}

	public void setBrandName(String brandName) {
		this.brandName = brandName;
	}

	public String getNameCn() {
		return nameCn;
	}

	public void setNameCn(String nameCn) {
		this.nameCn = nameCn;
	}

	public String getNameEn() {
		return nameEn;
	}

	public void setNameEn(String nameEn) {
		this.nameEn = nameEn;
	}

	public String getLogoPath() {
		return logoPath;
	}

	public void setLogoPath(String logoPath) {
		this.logoPath = logoPath;
	}

	public String getGoodNavigateImage() {
		return goodNavigateImage;
	}

	public void setGoodNavigateImage(String goodNavigateImage) {
		this.goodNavigateImage = goodNavigateImage;
	}

}
